class ExpWallerModel {
  String studentNo;
  int expTotal;
  int expPeriod;
  String expLevel;
  String expLevelDesc;
  List<ExpBreakdown> expBreakdown;

  ExpWallerModel(
      {this.studentNo,
        this.expTotal,
        this.expPeriod,
        this.expLevel,
        this.expLevelDesc,
        this.expBreakdown});

  ExpWallerModel.fromJson(Map<String, dynamic> json) {
    studentNo = json['student_no'];
    expTotal = json['exp_total'];
    expPeriod = json['exp_period'];
    expLevel = json['exp_level'];
    expLevelDesc = json['exp_level_desc'];
    if (json['exp_breakdown'] != null) {
      expBreakdown = new List<ExpBreakdown>();
      json['exp_breakdown'].forEach((v) {
        expBreakdown.add(new ExpBreakdown.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['student_no'] = this.studentNo;
    data['exp_total'] = this.expTotal;
    data['exp_period'] = this.expPeriod;
    data['exp_level'] = this.expLevel;
    data['exp_level_desc'] = this.expLevelDesc;
    if (this.expBreakdown != null) {
      data['exp_breakdown'] = this.expBreakdown.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class ExpBreakdown {
  String applyDate;
  String courseCode;
  String courseCodeDisp;
  String courseDate;
  String currency;
  String moneyDetail;
  String status;
  String value;
  String type;

  ExpBreakdown(
      {this.applyDate,
        this.courseCode,
        this.courseCodeDisp,
        this.courseDate,
        this.currency,
        this.moneyDetail,
        this.status,
        this.value,
        this.type});

  ExpBreakdown.fromJson(Map<String, dynamic> json) {
    applyDate = json['apply_date'];
    courseCode = json['course_code'];
    courseCodeDisp = json['course_code_disp'];
    courseDate = json['course_date'];
    currency = json['currency'];
    moneyDetail = json['moneyDetail'];
    status = json['status'];
    value = json['value'];
    type = json['type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['apply_date'] = this.applyDate;
    data['course_code'] = this.courseCode;
    data['course_code_disp'] = this.courseCodeDisp;
    data['course_date'] = this.courseDate;
    data['currency'] = this.currency;
    data['moneyDetail'] = this.moneyDetail;
    data['status'] = this.status;
    data['value'] = this.value;
    data['type'] = this.type;
    return data;
  }
}
